﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Cangku.Model;
using Cangku.DAL;

namespace Cangku.BLL
{
    public class ShopInfoBLL
    {
        /// <summary>
        /// 通过商品编号获取商品id
        /// </summary>
        /// <param name="shopId"></param>
        /// <returns></returns>
        public static int GetIdByShopId(string shopId)
        {
            return ShopInfo.GetIdByShopId(shopId);
        }
        /// <summary>
        /// 新增一条出库记录
        /// </summary>
        /// <param name="sto"></param>
        /// <returns></returns>
        public static bool AddStorage(tb_storage sto)
        {
            return ShopInfo.AddStorage(sto);
        }
        /// <summary>
        /// 查询所有出库信息
        /// </summary>
        /// <returns></returns>
        public static List<tb_storage> GetAllStorage()
        {
            return ShopInfo.GetAllStorage();
        }
    }
}